package com.example.pm.ending.server.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class PublishOwnerUpdateDTO implements Serializable {
    /**
     * 业主ID
     * */
    @ApiModelProperty(value = "业主ID", required = true)
    @NotNull(message = "添加业主ID失败，必须填写业主ID！")
    private Long ownerId;
    /**
     * 公布类型ID
     * */
    @ApiModelProperty(value = "公布类型ID", required = true)
    @NotNull(message = "添加公布类型ID失败，必须填写公布类型ID！")
    private Long publishTypeId;
    /**
     * 标题
     * */
    @ApiModelProperty(value = "标题", required = true)
    @NotNull(message = "添加标题失败，必须填写标题！")
    private String title;
    /**
     * 简介
     * */
    @ApiModelProperty(value = "简介", required = true)
    @NotNull(message = "添加简介失败，必须填写简介内容！")
    private String intro;
    /**
     * 描述
     * */
    @ApiModelProperty(value = "描述", required = true)
    @NotNull(message = "添加描述失败，必须必须填写描述！")
    private String description;
    /**
     * 封面图片
     * */
    @ApiModelProperty(value = "封面图片", required = true)
    @NotNull(message = "添加封面图片失败，必须添加封面图片！")
    private String cover;
    /**
     * 图片
     * */
    @ApiModelProperty(value = "图片", required = true)
    @NotNull(message = "添加图片失败，必须添加图片！")
    private String image;
}
